package com.szecsenyi.patterns.observer;

import com.szecsenyi.patterns.observer.observer.GeneralObserver;

public class Mobilphone extends GeneralObserver {

	String mobilPhoneDisplay;

	@Override
	public void display() {
		System.out.println("On my display is this: " + mobilPhoneDisplay);

	}

	@Override
	public void update(String message) {
		mobilPhoneDisplay = message;
		display();
	}
}
